package com.example.javaweb3.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {
    @RequestMapping("/")
    public String index() {
        return "index";
    }
    @RequestMapping("/hello")
    public String hello() {
        return "hello";
    }
        // 省略之前的内容...

        @RequestMapping("/login")
        public String login() {
            return "login";
        }

}
